package com.coocaa.ops.admin.v1.auth.sys.mapper;

import com.coocaa.ops.common.core.base.mapper.IBaseMapper;
import com.coocaa.ops.common.core.biz.auth.entity.SysMenuRunEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author bijiahao
 * @date : 2019/3/14.
 * @description
 */
public interface ISysMenuRunMapper extends IBaseMapper<SysMenuRunEntity> {
    /**
     * 删除-通过菜单ID
     *
     * @param menuId
     */
    void deleteByMenuId(Integer menuId);

    /**
     * 批量保存
     *
     * @param entities
     * @return
     */
    Integer addBatch(List<SysMenuRunEntity> entities);

    /**
     * 查询所有数据
     *
     * @param params
     * @return
     */
    List<SysMenuRunEntity> queryAll(@Param("cm") Map<String, Object> params);
}
